﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpeakupBackend.Themes
{
    public class DefaultLevelGroupFactory: BaseLevelGroupFactory<LevelGroup>
    {
        static List<KeyValuePair<int,int>> GetValidLevelGroups()
        {
            return new List<KeyValuePair<int, int>>()
            {
                new KeyValuePair<int,int>(1,1),
                new KeyValuePair<int,int>(2,2),
                new KeyValuePair<int,int>(3,4),
                new KeyValuePair<int,int>(5,6),
                new KeyValuePair<int,int>(7,8),
                new KeyValuePair<int,int>(9,10),
                new KeyValuePair<int,int>(11,12),
                new KeyValuePair<int,int>(13,15),
            };            
        }

        public DefaultLevelGroupFactory() :
            base(GetValidLevelGroups())
        {
        
        }

        protected override LevelGroup CreateLevelGroup(int min, int max)
        {
            return new LevelGroup(min, max);
        }
    }
}
